.dropdown {
    height: 100px;
    font-size: 12px;
    display: block;
    position: relative;
}

.dropdown ul li a, .dropdown ul li a:visited {
    display: block;
    text-decoration: none;
    color: #000;
    width: 104px;
    height: 20px;
    text-align: center;
    color: #fff;
    border: 1px solid #fff;
    background: #710069;
    line-height: 20px;
    font-size: 12px;
    overflow: hidden;
}

.dropdown ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown ul li {
    float: left;
    position: relative;
}

.dropdown ul li ul {
    display: none;
}


.dropdown ul li:hover a {
    color: #fff;
    background: #36f;
}

.dropdown ul li:hover ul {
    display: block;
    position: absolute;
    top: 21px;
    left: 0;
    width: 105px;
}

.dropdown ul li:hover ul li a.hide {
    background: #6a3;
    color: #fff;
}

.dropdown ul li:hover ul li:hover a.hide {
    background: #6fc;
    color: #000;
}

.dropdown ul li:hover ul li ul {
    display: none;
}

.dropdown ul li:hover ul li a {
    display: block;
    background: #ddd;
    color: #000;
}

.dropdown ul li:hover ul li a:hover {
    background: #6fc;
    color: #000;
}

.dropdown ul li:hover ul li:hover ul {
    display: block;
    position: absolute;
    left: 105px;
    top: 0;
}

.dropdown ul li:hover ul li:hover ul.left {
    left: -105px;
}
